/*
 * TODO: Description
 *
 * Copyright (C) 2010 Johan Waldeback
 *  
 * This file is part of the OpenFMS project (http://www.openfms-project.org)
 * 
 * OpenFMS is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef __OFMSMATH_H__
#define __OFMSMATH_H__

#include "ModelSimulator.h"
#include <LinearMath/btVector3.h>

float toThrustScale( float value );

void clearForces( ModelSimulator_forces_t &forces );
void addForce( ModelSimulator_forces_t &target, const btVector3 &force, const btVector3 &position );

btVector3 forceOnSurface( const btVector3 &normal, const btVector3 &wind, float area );


#endif // __OFMSMATH_H__




